package net.mingsoft.document.action.q;

import org.apache.commons.lang3.StringUtils;

/**
 * @author gengfa
 * @date 22/01/15
 */
public class FileModifyQuery {

    private String id;

    private String fileName;

    private String fileCode;

    public boolean validate() {
        return StringUtils.isNotBlank(id)
                && (
                        StringUtils.isNotBlank(fileCode) || StringUtils.isNotBlank(fileName)
                );
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileCode() {
        return fileCode;
    }

    public void setFileCode(String fileCode) {
        this.fileCode = fileCode;
    }
}
